# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=lomiri-schemas
pkgver=0.1.3
pkgrel=0
pkgdesc="GSettings / AccountsService schema files for Lomiri"
arch="noarch"
url="https://gitlab.com/ubports/development/core/lomiri-schemas"
license="LGPL-2.1-or-later"
makedepends="
	cmake
	cmake-extras
	glib-dev
	intltool
	"
source="https://gitlab.com/ubports/development/core/lomiri-schemas/-/archive/$pkgver/lomiri-schemas-$pkgver.tar.gz"
options="!check" # No tests

build() {
	# Doesn't build with Ninja backend:
	#  ninja: multiple rules generate 'data/schemas/com.lomiri.Shell.gschema.xml'
	cmake -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
6d771c1fe6bae8daa79544afe685af834726079d48d9ce42134ffa559d73b3da2c8d79965b66d2a0ba156e58532194d9c22e5613be4e71031131718c0c7485c8  lomiri-schemas-0.1.3.tar.gz
"
